<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>UDT Reference</title>
</head>

<body>

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table2" bgcolor="#99CCFF" bordercolor="#99CCFF">
  <tr>
    <td width="100%"><font face="Verdana" size="2"><i>&nbsp;UDT Reference: UDT Functions</i></font></td>
  </tr>
</table>
<h1><font face="Verdana" size="4">shutdown</font></h1>
<p><font face="Verdana" size="2">The <b>shutdown</b> method (partly) shutdown the UDT entity.</font></p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table3" bgcolor="#C0C0C0" bordercolor="#C0C0C0">
  <tr>
    <td width="100%">
    <p style="margin-top: 0; margin-bottom: 0">
    <font face="Courier New" size="1">int shutdown(</font></p>
    <p style="margin-top: 0; margin-bottom: 0">
    <font face="Courier New" size="1">&nbsp;&nbsp; UDTSOCKET
	<font color="#FFFFFF">u,</font></font></p>
	<p style="margin-top: 0; margin-bottom: 0">
    <font face="Courier New" size="1" color="#FFFFFF">&nbsp;&nbsp; </font>
	<font face="Courier New" size="1">int </font>
	<font face="Courier New" size="1" color="#FFFFFF">how</font></p>
    <p style="margin-top: 0; margin-bottom: 0">
    <font size="1" face="Courier New">);</font></td>
  </tr>
</table>
<h4><font face="Verdana" size="2">Parameters</font></h4>
<dl>
  <dt><i><font face="Verdana" size="2">u</font></i></dt>
	<dd>
    <font face="Verdana" size="2">[in] Descriptor identifying the socket 
		to close.</font>
	</dd>
	<dt><i><font face="Verdana" size="2">how</font></i></dt>
	<dd>
    <font face="Verdana" size="2">[in] which functionality should be 
		disabled.</font></dd>
</dl>
<h4><font face="Verdana" size="2">Return Values</font></h4>
<p><font face="Verdana" size="2">On success, 0 is returned; Otherwise, UDT::ERROR 
is returned and the specific error information can be retrieved by 
<a href="error.htm">getlasterror</a>.</font></p>
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="table4" bordercolordark="#C0C0C0" bordercolorlight="#C0C0C0" width="100%">
    <tr>
      <th align="center" bgcolor="#C0C0C0" width="133">
		<font face="Verdana" size="2">Error Code</font></th>
      <th align="center" bgcolor="#C0C0C0" width="812"><b>
      <font face="Verdana" size="2">Comment</font></b></th>
    </tr>
    <tr>
      <td width="133">
      <p style="margin-top: 1; margin-bottom: 1"><font face="Verdana" size="1">
		5003</font></td>
      <td width="812">
      <p style="margin-top: 1; margin-bottom: 1"><font face="Verdana" size="1">
		invalid parameters.</font></td>
    </tr>
    <tr>
      <td width="133">
      <p style="margin-top: 1; margin-bottom: 1"><font face="Verdana" size="1">
		5004</font></td>
      <td width="812">
      <p style="margin-top: 1; margin-bottom: 1"><font face="Verdana" size="1">
		<i>u</i> 
		is an invalid UDT socket.</font></td>
    </tr>
    </table>
<H4><font face="Verdana" size="2">Description</font></H4>
<p><font face="Verdana" size="2">The <b> shutdown</b> method is used to gracefully close 
a UDT socket connection.</font></p>
<p><font face="Verdana" size="2">This method is only for compatibility purpose.
It is has no effect for a UDT connection. In UDT, the graceful close is built in
the <a href="close.htm">close</a> method.&nbsp;</font></p>
<H4><font face="Verdana" size="2">See Also</font></H4>
<P><b><font face="Verdana" size="2"><a href="socket.htm">socket</a>, <a href="close.htm">close</a></font></b></P>

</body>

</html>